package com.itheima.pojo;

public class Item {
    // id 主键
    private Integer id;
    // 商品名称
    private String itemName;
    // 卖家名称
    private String sellerName;
    // 描述信息
    private String description;
    // 图片存储路径
    private String imgPath;
    // 商品价格
    private Integer price;
    // 卖家id
    private Integer sellerId;
    // 销量
    private Integer salesVolume;
    // 库存
    private Integer inventory;

    // 购物车中的数量（不存在于数据库中）
    private Integer quantity;
    // 商品预计销量（不存在于数据库中）
    private Integer salesPrediction;


    public Item() {
    }

    public Item(Integer id, String itemName, String sellerName, String description, Integer price) {
        this.id = id;
        this.itemName = itemName;
        this.sellerName = sellerName;
        this.description = description;
        this.imgPath = null;
        this.price = price;
    }

    public Item(Integer id, String itemName, String sellerName, String description, String imgPath, Integer price) {
        this.id = id;
        this.itemName = itemName;
        this.sellerName = sellerName;
        this.description = description;
        this.imgPath = imgPath;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public Integer getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(Integer salesVolume) {
        this.salesVolume = salesVolume;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getSalesPrediction() {
        return salesPrediction;
    }

    public void setSalesPrediction(Integer salesPrediction) {
        this.salesPrediction = salesPrediction;
    }

    @Override
    public String toString() {
        return "Item{" +
                "id=" + id +
                ", itemName='" + itemName + '\'' +
                ", sellerName='" + sellerName + '\'' +
                ", description='" + description + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", price=" + price +
                ", sellerId=" + sellerId +
                ", salesVolume=" + salesVolume +
                ", inventory=" + inventory +
                ", quantity=" + quantity +
                '}';
    }
}
